package com.spring.examples;


import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class HelloWorldMain {
	public static void main(String[] args) {
		ApplicationContext context=new ClassPathXmlApplicationContext("beans.xml");
		HelloWorld hw=(HelloWorld)context.getBean("helloworld");
			
		System.out.println("id is......."+hw.getId());
		System.out.println("name is--------"+hw.getName());
		System.out.println("helloworld message is ........."+hw.getMessage());
		System.out.println("address is!!!!!!"+hw.getAddress());
	}

}
